package com.hyjr.common.data;

import java.io.Serializable;

import com.hyjr.collect.common.Constants;

public class ResultData implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private String code;
	private String errorMsg;
	private Object obj;
	
	public ResultData() { }
	
	public ResultData(String code, String errorMsg) {
		this.code = code;
		this.errorMsg = errorMsg;
	}
	
	public ResultData(Object obj) {
		this.code = Constants.RET_SUCCESS_CODE;
		this.obj = obj;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}
	
	
}
